#ifndef EXPORT_SYMBOL_H
#define EXPROT_SYMBOL_H

#include <server/invokeproxy.h>
#include <server/broadcast.h>

void (*inner_broad_cast)(int bc_id, cJSON *cj);
void (*iv_inner_call)(char *,struct cJSON*, struct cJSON*);
#define EXPORT_SYMBOL(method) \
	method_st *get_object_method(void *iv_handle) \
	{ \
		iv_inner_call = iv_handle ;\
	 	return method;\
	} \
	\
	int get_object_method_num() \
	{\
		return ((sizeof(method))/(sizeof(method_st))); \
	}	
	
#define EXPORT_BROADCAST(bc_method)\
	bc_app_st *get_object_broadcast(void *bc_handle) \
	{\
		inner_broad_cast = bc_handle; \
		return bc_method;\
	}\
	\
	int get_object_broadcast_num() \
	{\
		return ((sizeof(bc_method))/(sizeof(bc_app_st))); \
	}


#endif
